package com.gzsxy.prototype.demo;

import java.util.Date;

/**
 * @author xiaolong
 * @version 1.0
 * @description: 1.实现一个接口 cloneable
 * @date 2022/4/12 22:58
 */
public class Video implements Cloneable{

    private String name;

    private Date createTime;

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
    public Video(){

    }

    public Video(String name, Date createTime) {
        this.name = name;
        this.createTime = createTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Video{" +
                "name='" + name + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
